@extends('layouts.goods')
@section('content')
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 产品中心 <span class="c-gray en">&gt;</span> 栏目管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
    <div class="page-container">
        <!-- <div class="text-c">
            <form action="/admin/cat" method="get">
                <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}' })" id="datemin" class="input-text Wdate" style="width:120px;">
                -
                <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d' })" id="datemax" class="input-text Wdate" style="width:120px;">
                <input type="text" class="input-text" style="width:250px" placeholder="输入栏目名称" id="" name="name">
                <button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜栏目</button>
            </form>
        </div> -->
        <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"><a href="/admin/cat/create" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加栏目</a></span> <span class="r">共有数据：<strong>{{$num}}</strong> 条</span> </div>
        <div class="mt-20">
            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <thead>
                <tr class="text-c">
                    <th width="25"><input type="checkbox" name="" value=""></th>
                    <th width="60">栏目id</th>
                    <th width="150">栏目名称</th>
                    <th width="60">栏目缩略图</th>
                    <th width="60">栏目pid</th>

                    <th width="100">操作</th>
                </tr>
                </thead>    
                <tbody>

                @foreach($cats as $cat)
                <tr class="text-c">
                    <td><input type="checkbox" value="1" name=""></td>
                    <td>{{$cat->catid}}</td>
                    <td style="text-align:left"><?php echo "|-",str_repeat('--',2*$cat->lev);?>{{$cat->catname}}</td>
                    <td><img src="/upload/images/{{$cat->catpic}}" width="30" height="30"></td>
                    <td>{{$cat->parentid}}</td>



                    <td class="td-manage">
                        <a title="编辑" href="/admin/cat/{{$cat->catid}}/edit" onclick="member_edit('编辑','/admin/user/{{$cat->catid}}/edit','4','','510')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
                        <a title="删除" href="/admin/cat/del/{{$cat->catid}}" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
                </tr>
                @endforeach


                </tbody>
            </table>

            <div class="dataTables_info" id="DataTables_Table_0_info" role="status" aria-live="polite">

            </div>
        </div>
    </div>

@endsection
</body>
</html>